package com.hhf.demo_03;

import java.util.concurrent.Callable;

/**
 * @Author: 黄恒锋
 * @DateTime: 2024/5/11 18:28
 * @Description: TODO
 */
public class MyCallable implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        int sum = 0;
        for (int i = 1; i <= 100; i++) {
            sum += i;
        }
        return sum;
    }
}
